﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.Domain;
using OFB.BLL.ViewModel;

namespace OFB.BLL.Repository
{
    public interface IManageAdminBLL
    {
        AdminListViewModel FindAll(int page = 0, int statusId = 2);
        AdminViewModel Find(int AdminId);
        int AdminCreate(AdminViewModel admin);
        int AdminUpdate(int AdminId, string Account, string Password, string Name, string Phone, string Email);
        int AdminUpdateStatus(string username, bool isDisabled);
        AdminViewModel FindByUsername(string userName);
        AdminListViewModel FindByName(string name, int page = 0, int findBy = 2);
        AdminListViewModel FindByAccount(string account, int page = 0, int findBy = 2);
        AdminListViewModel FindByEmail(string email, int page = 0, int findBy = 2);
        AdminListViewModel FindByFindAll(string searchString, int page = 0, int findBy = 2);
        bool IsSuperAdmin(string Username);
    }
}
